home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / PROGRAPH / PICT_FIL / SCROLL_P.REA
Text File  |  1991-11-19  |  1KB  |  31 lines

  1. Example:      Scroll Pict
  2. Written by:  Garth Smedley, TGS Systems
  3.  
  4. Previously written by: Lynn McKaig and Ehric Ho
  5.  
  6. Contents:     Scroll Pict.pgs
  7.                    Scroll Pict.ReadMe
  8.  
  9. Needs Prograph Extensions:
  10.                     Math Primitives
  11.                     TGS Primitives #1
  12.                     TGS Primitives #2
  13.                     Basic Toolbox     
  14.  
  15. Needs Libraries to Compile:  
  16.                     SCLibrary
  17.                     Library
  18.  
  19. New Classes:
  20.                   Pict File - Subclass of Canvas that draws a picture from a PICT file.
  21.                   Pict rsrc - Subclass of Canvas that draws a picture from a PICT resource.
  22.  
  23. New Methods:
  24.                                     Read PICT File - A universal method that reads a picture from a PICT file
  25.  
  26.  
  27. Description
  28. -----------
  29. This example demonstrates how to read a picture from a PICT file. Our technical support department is asked how to do this surprisingly often. The universal method "Open File" opens a file, reads a picture from it, and displays the picture in a window. 
  30.  
  31. It also demonstrates how to draw a picture with scroll bars. The class "Scroll Pict" does most of the work, the classes "PICT File" and "PICT rsrc" are refinements of "Scroll Pict" which display pictures from files and resources respectively.